package com.xyf.sys.mapper;

import com.xyf.sys.domain.UserPrinter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserPrinterMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserPrinter record);

    int insertSelective(UserPrinter record);

    UserPrinter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserPrinter record);

    int updateByPrimaryKey(UserPrinter record);

    List<UserPrinter> selectPrinterList(@Param("userId") String userId);

    List<UserPrinter> selectDeptPrinterList(@Param("deptId") Long deptId);

    List<UserPrinter> selectBySiid(@Param("userId") String userId, @Param("siid") String siid);

    List<UserPrinter> selectAll();
}